<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('Admin/Subject/index')}">专题列表</a></li>
			<li class="active"><a href="{:U('Admin/Subject/add')}">添加专题</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="{:U('Admin/Subject/add_post')}">
				<div class="control-group">
					<label class="span1 control-label" style="width: 90px;">专题标题：</label>
					<div class="span3">
						<input type="text" name="cateName"  style="width: 556px;">
					</div>
				</div>
				<div class="control-group">
					<label class="span2 control-label" style="width: 90px;">专题标签：</label>
					
					<div class="span3">
						<select multiple="multiple" style="max-height: 100px;" name="tags[]">
						<foreach name="tags" item="vo">
							<option value="{$vo.tagId|number_format=0,'',''}">{$vo.tagTitle}</option>
						</foreach>	
						</select>
						<div>windows：按住 Ctrl 按钮来选择多个选项,Mac：按住 command 按钮来选择多个选项</div>
						<!-- <select class="select_2" name="upperId" id="upperId">
							<foreach name="tags" item="vo">
								<option value="{$vo.tagId|number_format=0,'',''}">{$vo.tagTitle}</option>
							</foreach>
						</select> -->
					</div>
					<div class="span3">
						<a href="{:U('Admin/Subject/add_tag')}">添加标签</a>
					</div>
				</div>
				<div class="control-group">
					<label class="span1 control-label" style="width: 90px;">专题封面：</label>
					<div style="padding-left: 130px;text-align: left;">
						<input type="hidden" name="imageUrl" id="imageUrl" value="">
						<a href="javascript:void(0);" onclick="flashupload('thumb_images', '附件上传','imageUrl',thumb_images,'1,jpg|jpeg|gif|png|bmp,1,,,1','','','');return false;">
							<img src="__TMPL__Public/assets/images/default-thumbnail.png" id="imageUrl_preview" width="135" style="cursor: hand" />
						</a>
					</div>
				</div>
			<div class="form-actions" style="padding-left:260px;">
				<button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
				&nbsp;&nbsp;<a class="btn" href="{:U('Admin/Subject/index')}">{:L('BACK')}</a>
			</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/content_addtop.js"></script>
</body>
</html>